<?xml version="1.0"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns:html="http://www.w3.org/1999/xhtml">
  <atom:id>http://bill.welliver.org/atom/pike/Objective C Bridge/Problems</atom:id>
  <atom:title type="text">electronic.alchemy :: Problems</atom:title>
  <atom:updated>2026-04-05T17:01:42-04:00</atom:updated>
  <atom:link href="http://bill.welliver.org/atom/pike/Objective C Bridge/Problems" type="application/atom+xml"></atom:link>
  <atom:link href="http://bill.welliver.org/space/pike/Objective C Bridge/Problems" type="text/html"></atom:link>
  <atom:link href="http://bill.welliver.org/rss/pike/Objective C Bridge/Problems" type="application/rss+xml"></atom:link>
  <atom:generator uri="http://modules.gotpike.org/blahblah/Public.Syndication.ATOM" version="0.1">Public.Syndication.ATOM (Pike v8.0 release 702)</atom:generator>
  <atom:icon>http://bill.welliver.org/favicon.ico</atom:icon>
  <atom:logo>http://bill.welliver.org/static/images/alchemy.gif</atom:logo>
  <atom:subtitle type="xhtml"><html:div xmlns:html="http://www.w3.org/1999/xhtml"><html:i class="ital">A list of current engineering issues related to development of the Objective-C bridge. Intended primarily as a reminder of things left unfinished at the end of a long day. Comments are always welcome!</html:i><html:p class="paragraph"/>
<html:b class="bold">problem:</html:b> when the objective-c runtime calls a function from a pike object inherited from an objective-c class, the objective-c implementation of the function does not receive the pike scope of the object. as a result, if that objective-c implemented function (init, for example) returns itself, it returns the embedded native objective-c object rather than the "full" (pike + objective-c) object.<html:p class="paragraph"/>
<html:b class="bold">proposed workaround:</html:b> check to see if the returned objective-c level object is the same as the object returned. if it is, then the method returned itself and we can simply return the original pike object.<html:p class="paragraph"/>
<html:b class="bold">discussion:</html:b> are there side effects to this method? does it always work?</html:div></atom:subtitle>
</atom:feed>
